virgil van dijk gave celtic the lead with a superb free-kick .
josh meekings escaped a red card just before the break for a hand ball .
celtic keeper craig gordon was sent off early in the second half .
greg tansey 's penalty and edward ofere put inverness ahead .
john guidetti equalised , but david raven had the final say .